package com.banana.manager.forest.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@TableName("user_info")
@Getter @Setter @NoArgsConstructor @ToString
public class UserBean {

    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @TableField("user_name")
    private String userName;

    @TableField("user_password")
    private String userPassword;

    @TableField("user_real_name")
    private String userRealName;

    @TableField("user_role")
    private String userRole;

    public UserBean(String userName, String userPassword, String userRealName, String userRole) {
        this.userName = userName;
        this.userPassword = userPassword;
        this.userRealName = userRealName;
        this.userRole = userRole;
    }
}
